home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / GPC2952B.ZIP / doc / gpc / demos / demoproc.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2001-02-08  |  1.3 KB  |  45 lines

  1. {
  2. GPC demo code. Demo process for pipedemo.pas.
  3.  
  4. Copyright (C) 1999-2001 Free Software Foundation, Inc.
  5.  
  6. Author: Frank Heckenbach <frank@pascal.gnu.de>
  7.  
  8. This program is free software; you can redistribute it and/or
  9. modify it under the terms of the GNU General Public License as
  10. published by the Free Software Foundation, version 2.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; see the file COPYING. If not, write to
  19. the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20. Boston, MA 02111-1307, USA.
  21.  
  22. As a special exception, if you incorporate even large parts of the
  23. code of this demo program into another program with substantially
  24. different functionality, this does not cause the other program to
  25. be covered by the GNU General Public License. This exception does
  26. not however invalidate any other reasons why it might be covered
  27. by the GNU General Public License.
  28. }
  29.  
  30. program DemoProcess;
  31.  
  32. uses GPC;
  33.  
  34. var
  35.   s : TString;
  36.  
  37. begin
  38.   while not EOF do
  39.     begin
  40.       Readln (s);
  41.       Writeln ('Writing `', s, ''' to Output.');
  42.       Writeln (StdErr, 'Writing `', s, ''' to Error.')
  43.     end
  44. end.
  45.